//
//  CFRMDishesListCell.swift
//  StriveForPregnancy
//
//  Created by iOS-Czz on 2023/10/29.
//

import UIKit

class SFPMaternityNotesCell: UITableViewCell {
    
    @IBOutlet var feelLabel: UILabel!
    @IBOutlet var timesLabel: UILabel!
    @IBOutlet var tempLabel: UILabel!
    @IBOutlet var dateLabel: UILabel!
    var clickEditBlock: (() -> Void)?
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    var model: SFPMaternityNotesModel? {
        didSet {
            self.dateLabel.text = String(format: "%@\n%@", (self.model?.date.substring(from: 5))!,(self.model?.date.substring(to: 3))!)
            self.tempLabel.text = self.model!.temperature + "℃"
            self.timesLabel.text = self.model!.quicken + " times"
            self.feelLabel.text = self.model?.feel
        }
    }
    
}
